package com.example.fete.View;

import androidx.appcompat.app.AppCompatActivity;
import androidx.viewpager.widget.ViewPager;

import android.os.Bundle;
import android.view.View;

import com.example.fete.Adapter.GuideAdapter;
import com.example.fete.Base.BaseActivity;
import com.example.fete.R;

import java.util.ArrayList;
import java.util.List;

public class GuideActivity extends BaseActivity {

    private ViewPager viewPager;
    private List<View> mList = new ArrayList<>();
    private View view1,view2, view3;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    protected void initHanler() {

    }

    @Override
    protected void initView() {
        viewPager = (ViewPager) findViewById(R.id.mViewPager);
        view1 = new View(this);
        view1.setBackgroundResource(R.drawable.guide1);
        view2 = new View(this);
        view2.setBackgroundResource(R.drawable.guide2);
        view3 = new View(this);
        view3.setBackgroundResource(R.drawable.guide3);

        mList.add(view1);
        mList.add(view2);
        mList.add(view3);

        viewPager.setAdapter(new GuideAdapter(mList));
    }

    @Override
    public int initXmlID() {
        return R.layout.activity_guide;
    }
}
